#include <stdio.h>
#include <string.h>
int ADD(int a, int b)
{
	return a + b;
}
int SUB(int a, int b)
{
	return a - b;
}
int MUL(int a, int b)
{
	return a * b;
}
int DIV(int a, int b)
{
	return a / b;
}

int main()
{
	char arr1[4] = { 0 };
	char arr2[4] = { 0 };
	scanf("%s", arr1);
	int a, b;
	scanf("%d%d", &a, &b);
	for (int i = 0; i < 3; i++)
	{
		arr2[i] = toupper(arr1[i]);
	}
	int ret = 0;
	if (strcmp(arr2, "ADD") == 0)
	{
		ret = ADD(a, b);
	}
	if (strcmp(arr2, "SUB") == 0)
	{
		ret = SUB(a, b);
	}
	if (strcmp(arr2, "MUL") == 0)
	{
		ret = MUL(a, b);
	}
	if (strcmp(arr2, "DIV") == 0)
	{
		if (b == 0)
		{
			printf("Error");
			return 0;
		}
		ret = DIV(a, b);
	}
	printf("%d", ret);
	return 0;
}